from python
#端口
ARG PORT=5000
#设置时区
ARG TIME_ZONE=Asia/Shanghai

#拷贝代码
COPY . /app/scrapy_selenium

#下载python依赖包
RUN pip install -r /app/scrapy_selenium/requirements.txt


#健康检查
HEALTHCHECK --interval=5s --timeout=5s  CMD curl -fs http://localhost:5000/health_check || exit 1

EXPOSE ${PORT}
#启动服务
ENTRYPOINT sh /app/scrapy_selenium/start.sh